package com.ews.onlineexchange.service;

import java.util.Date;

import javax.enterprise.inject.Model;

import com.ews.onlineexchange.model.RejectRecord;

@Model
public class RejectRecordHome extends EntityHome<RejectRecord, String> {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Override
	public RejectRecord createInstance() {
		return super.createInstance();
	}

	@Override
	public String saveAndFlush() {
		getInstance().setRejectTime(new Date());
		return super.saveAndFlush();
	}

}
